<div align="center">
<form action="index.php?module=loai&action=list" method="POST">
	<table border="1">
		<tr>
			<td>STT</td>
			<td>Loai Xe</td>
			<td>Del</td>
			<td>Edit</td>
		</tr>
		<?php
			$stt = 0;
			foreach($data as $row){
				$stt++;
				echo "<tr>";
					echo "<td>".$stt."</td>";
					echo "<td>".$row["tenloai"]."</td>";
					echo "<td><a href='index.php?module=loai&action=del'>Del</a></td>";
					echo "<td><a href='index.php?module=loai&action=edit'>Edit</a></td>";
				echo "</tr>";
			}
		?>
		<tr>
			<td colspan="4"><a href="index.php?module=loai&action=add">Add</a></td>
		</tr>
	</table>
</form>
</div>